package com.ming.transaction.service;

import com.ming.transaction.common.Result;
import com.ming.transaction.entity.Goods;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 陈仕健
 * @since 2023-05-11
 */
public interface IGoodsService extends IService<Goods> {

    Result uploadImage(MultipartFile file) throws IOException;

    void dowmloadImage(String fileUUID) throws IOException;

    Result upStugoods(Integer id);

    Result pageSearch(Integer pageNum, Integer pageSize, String gname, String classly);

    Result pageSearchs(Integer pageNum, Integer pageSize, String gname, String classly, String unumber);

    Result goodupdate(Goods goods);

    Result deleteById(Integer id);

    Result deleteByIds(List<Integer> ids);

    Result saveGoods(Goods goods);
}
